package spring.in.action.chapter_03.spel;

public class BankDisc
{
    private String title;

    private String artist;

    public BankDisc(String pTitle, String pArtist)
    {
        this.title = pTitle;
        this.artist = pArtist;
    }

    public void play()
    {
        System.out.println("播放 " + artist + "的 " + title);
    }

    public String getTitle()
    {
        return this.title;
    }

    public void setTitle(String pTitle)
    {
        this.title = pTitle;
    }

    public String getArtist()
    {
        return this.artist;
    }

    public void setArtist(String pArtist)
    {
        this.artist = pArtist;
    }

    @Override
    public String toString()
    {
        return "BankDisc [title=" + this.title + ", artist=" + this.artist + "]";
    }

}
